home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group93b.txt / 000028_icon-group-sender _Tue Apr 27 09:45:32 1993.msg < prev    next >
Internet Message Format  |  1993-06-16  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Tue, 27 Apr 1993 05:14:52 MST
  2. Message-Id: <9304270845.AA09147@ruls41.LeidenUniv.nl>
  3. To: icon-group@cs.arizona.edu
  4. Cc: ruiter@ruls41.LeidenUniv.nl
  5. Subject: Re: "Find that Niche!" contest? 
  6. Date: Tue, 27 Apr 93 09:45:32 +0100
  7. From: ruiter@ruls41.LeidenUniv.nl
  8. X-Mts: smtp
  9. Status: R
  10. Errors-To: icon-group-errors@cs.arizona.edu
  11.  
  12. I don't know whether finding a 'hot' or 'cool' application
  13. written *in* Icon would be so convincing. Of course,
  14. any good application written in Icon *supports* the
  15. language by means of illustration and a sort of
  16. "see what you can do in this language"-proof.
  17.  
  18. However, I think the main power of Icon lies in the
  19. possibility of reducing development time. I have
  20. implemented several psycholinguistic models using
  21. Icon in 2-3 hours, including a handy command-line
  22. interface. What struck me as one of the advantages
  23. of Icon in that context is that I could call procedures
  24. by their string values, so after defining a new procedure
  25. in the model, the user interface did not have to be 
  26. adapted; the new procedure could be called from the command
  27. line right away!
  28.  
  29. This sort of 'trics' usually surpises programmers in a positive
  30. way. I had a colleague (C programmer) turn whitish when he 
  31. saw me scramble (randomize) a file with:
  32.  
  33. procedure main(ar)
  34.     infile := open(ar[1]) | &input
  35.     lines := list()
  36.     every(put(lines,!infile))
  37.     every(?lines :=: !lines)
  38.     every(write(!lines))
  39.     close(infile)
  40. end
  41.  
  42. Now this rather innocent kind of program is so easy to 
  43. write in Icon that you'd have to run it a thousand times
  44. a day to justify writing it in C.
  45.  
  46. The unique thing of Icon (IMHO, of course) is that it
  47. reduces development time so drastically that it actually
  48. pays to use it, even when the performance is interpreter-like.
  49.  
  50. Maybe what would help to convince programmers if they are
  51. potential Icon enjoyers is a document that does not only 
  52. highlight Icon's features, but also compares these features
  53. with other programming languages like awk() en C(++). If 
  54. such a document is written well, it could be quite convincing.
  55.  
  56. Jan
  57.  
  58. ----------------------------------------------------
  59. Jan de Ruiter
  60. Leiden University  
  61. Dept. of Information Science for the Social Sciences
  62. The Netherlands
  63. ruiter@ruls41.leidenuniv.nl
  64.